package com.example.mobile2021606177cke0427;

import android.os.Bundle;
import android.widget.Button;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import java.util.ArrayList;
import java.util.List;

public class MainActivity extends AppCompatActivity {

    private TextView editText;
    private Button btnMainSea;
    private RecyclerView rvMainParking;
    private List<Parking> list = new ArrayList();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        rvMainParking.setLayoutManager(new LinearLayoutManager(this));
        rvMainParking.setAdapter(new ParkingRVAdapter(list));
    }

    private void initView() {
        editText = (TextView) findViewById(R.id.edit_text);
        btnMainSea = (Button) findViewById(R.id.btn_main_sea);
        rvMainParking = (RecyclerView) findViewById(R.id.rv_main_parking);

    }
}